<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>kisebo: Código-Fonte de F:/Projetos/Rodrigo/kisebo/src/estruturas/Iterador.h</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Gerado por Doxygen 1.5.7.1 -->
<script type="text/javascript">
<!--
function changeDisplayState (e){
  var num=this.id.replace(/[^[0-9]/g,'');
  var button=this.firstChild;
  var sectionDiv=document.getElementById('dynsection'+num);
  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
    sectionDiv.style.display='block';
    button.src='open.gif';
  }else{
    sectionDiv.style.display='none';
    button.src='closed.gif';
  }
}
function initDynSections(){
  var divs=document.getElementsByTagName('div');
  var sectionCounter=1;
  for(var i=0;i<divs.length-1;i++){
    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
      var header=divs[i];
      var section=divs[i+1];
      var button=header.firstChild;
      if (button!='IMG'){
        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
        button=document.createElement('img');
        divs[i].insertBefore(button,divs[i].firstChild);
      }
      header.style.cursor='pointer';
      header.onclick=changeDisplayState;
      header.id='dynheader'+sectionCounter;
      button.src='closed.gif';
      section.id='dynsection'+sectionCounter;
      section.style.display='none';
      section.style.marginLeft='14px';
      sectionCounter++;
    }
  }
}
window.onload = initDynSections;
-->
</script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Página&nbsp;Principal</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Arquivos</span></a></li>
      <li><a href="dirs.html"><span>Diretórios</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;de&nbsp;Arquivos</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_e5fb231306b426dbf7288f735af63cb9.html">src</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_f7619af0a658292424a6762d7a58c916.html">estruturas</a>
  </div>
</div>
<div class="contents">
<h1>Iterador.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef ITERADOR_H_</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define ITERADOR_H_</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00010"></a>00010 <span class="keyword">template</span> &lt;<span class="keyword">class</span> TIPO&gt;
<a name="l00011"></a><a class="code" href="class_iterador.html">00011</a> <span class="keyword">class </span><a class="code" href="class_iterador.html" title="Interface para Arvore. Possue alguns métodos de iteração da árvore,   apontando...">Iterador</a>
<a name="l00012"></a>00012 {
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 <span class="keyword">public</span>:
<a name="l00015"></a>00015 
<a name="l00016"></a>00016         <span class="comment">/*</span>
<a name="l00017"></a>00017 <span class="comment">         * @fn ~Iterador()</span>
<a name="l00018"></a>00018 <span class="comment">         * @brief Destrutor</span>
<a name="l00019"></a>00019 <span class="comment">         * Remove a instancia do objeto, para limpar a mémoria.</span>
<a name="l00020"></a>00020 <span class="comment">         */</span>
<a name="l00021"></a>00021         <span class="keyword">virtual</span> ~<a class="code" href="class_iterador.html" title="Interface para Arvore. Possue alguns métodos de iteração da árvore,   apontando...">Iterador</a>() { }
<a name="l00022"></a>00022 
<a name="l00023"></a>00023         <span class="comment">/*</span>
<a name="l00024"></a>00024 <span class="comment">         * @fn virtual void Primeiro()</span>
<a name="l00025"></a>00025 <span class="comment">         * @brief Aponta para o primeiro item.</span>
<a name="l00026"></a>00026 <span class="comment">         */</span>
<a name="l00027"></a>00027         <span class="keyword">virtual</span> <span class="keywordtype">void</span> Primeiro() = 0;
<a name="l00028"></a>00028 
<a name="l00029"></a>00029         <span class="comment">/*</span>
<a name="l00030"></a>00030 <span class="comment">         * @fn virtual void Proximo()</span>
<a name="l00031"></a>00031 <span class="comment">         * @brief Pega o próximo item.</span>
<a name="l00032"></a>00032 <span class="comment">         */</span>
<a name="l00033"></a>00033         <span class="keyword">virtual</span> <span class="keywordtype">void</span> Proximo() = 0;
<a name="l00034"></a>00034 
<a name="l00035"></a>00035         <span class="comment">/*</span>
<a name="l00036"></a>00036 <span class="comment">         * @fn virtual bool Final()</span>
<a name="l00037"></a>00037 <span class="comment">         * @brief Verifica se é o ultimo item.</span>
<a name="l00038"></a>00038 <span class="comment">         */</span>
<a name="l00039"></a>00039         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> Final() = 0;
<a name="l00040"></a>00040 
<a name="l00041"></a>00041         <span class="comment">/*</span>
<a name="l00042"></a>00042 <span class="comment">         * @fn virtual TIPO GetItem()</span>
<a name="l00043"></a>00043 <span class="comment">         * @brief Obtem um item.</span>
<a name="l00044"></a>00044 <span class="comment">         */</span>
<a name="l00045"></a>00045         <span class="keyword">virtual</span> TIPO GetItem() = 0;
<a name="l00046"></a>00046 };
<a name="l00047"></a>00047 
<a name="l00048"></a>00048 <span class="preprocessor">#endif </span><span class="comment">/*ITERADOR_H_*/</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Gerado em Wed Dec 3 04:35:41 2008 para kisebo por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.7.1 </small></address>
</body>
</html>
